//package mongo;
//
//import lombok.Data;
//import lombok.NoArgsConstructor;
//import org.springframework.data.annotation.Id;
//import org.springframework.data.mongodb.core.mapping.Document;
//import org.springframework.data.mongodb.core.mapping.Field;
//
//import java.util.Collection;
//import java.util.LinkedList;
//
//@Data
//@NoArgsConstructor
//@Document
//public class MongoUser {
//
//    @Id
//    private String id;
//    private String name;
//    private Short age;
//
//    @Field
//    private Collection<Location> locations = new LinkedList<>();
//
//    public MongoUser(String id, String name, Short age) {
//        this.id = id;
//        this.name = name;
//        this.age = age;
//    }
//}
